import service from "../utils/request";
import ajax from "../utils/ajax";
const BASE = 'http://localhost:3000'
    /*
     *  获取轮播图接口
     */
    export function getFind() {
        return service.request({
            url:'/charity/api/rest/FindPerson',
            method:'get',
            // params:requestData
        })
    } 

    /*
     *  根据姓名寻人
     */
    //   export function FindPeople(name) {
    //     // console.log(requestData);
    //     return service.request({
    //         url:'/find/find',
    //         method:'post',
    //         params:{name} 
    //     })
    // } 
    export const FindPeople=(requestData)=>ajax(BASE+'/find/find',{name:requestData},'POST')
    export const addPeople=(model)=>ajax('http://localhost:3000/charity/api/rest/FindPerson',model,'POST')
